<template>
  <div class="content">
    <!-- 左侧主体区域 -->
    <div class="left">
      <div class="nav">
        <div class="img">
          <img src="../images/02.jpg" alt="图标" />
        </div>
        <div class="routerL">
          <router-link class="active" to="Dashboard" tag="span">Dashboard</router-link>
          <router-link to="Services" tag="span">Services</router-link>
          <router-link to="History" tag="span">History</router-link>
          <router-link to="Actions" tag="span">Actions</router-link>
        </div>
        <div class="search">
          <input type="text" placeholder="search..." />
          <button>
            <i class="el-icon-search"></i>
          </button>
        </div>
      </div>
      <!-- 路由显示区域 -->
      <div class="main">
        <router-view></router-view>
      </div>
    </div>
    <!-- 右侧卡片信息 -->
    <el-card>
      <div class="header">
        <i class="el-icon-message-solid"></i>
        <p>
          <span>Anastasia</span>
          <img src="../images/01.jpg" alt="头像" />
        </p>
      </div>
      <div class="conData"></div>
      <div class="RecordsOfcons">
        <p class="headermassage">
          <span>Transactions</span>
          <span>Today</span>
        </p>
        <p>
          <img src="../images/04.jpg" />
          <span>Drebble Pro Plan</span>
          <span>-$100</span>
        </p>
        <p>
          <img src="../images/04.jpg" />
          <span>Drebble Pro Plan</span>
          <span>+$230</span>
        </p>
        <p>
          <img src="../images/04.jpg" />
          <span>Drebble Pro Plan</span>
          <span>-$3000</span>
        </p>
        <p class="transmaney">
          <el-button plain class="but">
            <span>Transfer Money</span>
            <i class="el-icon-right"></i>
          </el-button>
        </p>
        <p class="smsBut">
          <el-button plain class="SMS"><i class="el-icon-s-comment"></i></el-button>
        </p>
      </div>
    </el-card>
  </div>
</template>
<script>
export default {
  data () {
    return {
    }
  },
  methods: {
  }
}
</script>
<style lang="less" scoped>
// 主区域样式
.content {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  display: flex;
  max-width: 1470px;
  max-height: 970px;
  justify-content: space-between;
  border: 15px solid rgba(253, 218, 218, 0.8);
  border-radius: 40px;
  box-shadow: 20px 12px 20px 0 #fcccca;
  background-color: #fefefe;
}
.left {
  box-sizing: border-box;
  background-color: #fefefe;
  padding-left: 78px;
  padding-top: 36px;
  padding-right: 68px;
  width: 1060px;
  flex: 1;
  border-radius: 26px 0 0 26px;
}
// 右边信息卡样式
.el-card {
  width: 380px;
  height: 100%;
  flex: 0 0 380px;
  background-color: #fff;
  border-radius: 26px;
  box-shadow: -20px 0px 40px 0 rgba(0, 0, 0, 0.1) !important;
  .header {
    box-sizing: border-box;
    width: 100%;
    height: 78px;
    display: flex;
    padding: 0 12px 0 12px;
    margin-top: 8px;
    justify-content: space-between;
    align-items: center;
    i {
      color: #ccc;
      font-size: 30px;
    }
    p {
      display: flex;
      width: 140px;
      height: 50px;
      justify-content: space-between;
      align-items: center;
      span {
        height: 30px;
      }
      img {
        width: 50px;
        border-radius: 50%;
      }
    }
  }
}
.nav {
  display: flex;
  width: 100%;
  height: 70px;
  justify-content: space-between;
  align-items: flex-end;
  img {
    width: 48px;
  }
}
.routerL {
  display: flex;
  width: 374px;
  font-size: 14px;
  justify-content: space-between;
  align-items: flex-end;
  color: #ccc;
  span {
    cursor: pointer;
    margin-bottom: 10px;
  }
}
.search {
  position: relative;
  width: 276px;
  height: 40px;
  input {
    width: 276px;
    height: 40px;
    background-color: #f8f8f8;
    border-radius: 18px;
    outline: none;
    border: none;
    text-indent: 20px;
  }
  button {
    position: absolute;
    width: 50px;
    height: 40px;
    top: 0;
    right: 0;
    background-color: #f8f8f8;
    border-radius: 0 15px 15px 0;
    border: none;
    outline: none;
  }
}
.main {
  margin-top: 54px;
  width: 100%;
  min-height: 500px;
  max-height: 750px;
}
.conData {
  width: 100%;
  height: 334px;
}
.RecordsOfcons {
  box-sizing: border-box;
  width: 100%;
  height: 482px;
  margin-right: 32px;
  padding-left: 12px;
  p {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    img {
      width: 60px;
    }
  }
}
.transmaney {
  margin-top: 50px;
  .but {
    display: flex;
    box-sizing: border-box;
    padding: 0 26px 0 26px;
    text-align: center;
    width: 300px;
    height: 54px;
    background-color: #ff4d56;
    color: white;
    border: none;
    border-radius: 27px;
    margin-left: 20px;
    span{
      margin-left: 50px;
      line-height: 26px;
      span {
        float: left;
        width: 120px;
        height: 26px;
        font-size: 16px;
      }
      i {
        height: 26px;
        font-size: 26px;
      }
    }
  }
}

.smsBut {
  position: relative;
  width: 100%;
  height: 60px;
  margin-top: 20px;
  .SMS {
    position: absolute;
    display: flex;
    width: 60px;
    height: 60px;
    margin-right: 10px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background-color: #0e809a;
    border: none;
    right: 0;
    i{
      width: 30px;
      height: 36px;
      color: white;
      font-size: 36px;
    }
  }
}
.headermassage{
  color: #ccc;
}
</style>
